// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import routers from './router/homeRouter.js'
import mixin from './mixin/index'
import axios from 'axios'
import './common/style/common.scss'
import 'babel-polyfill'

import { post, get, put, del } from './common/js/axios'
Vue.prototype.$post = post
Vue.prototype.$get = get
Vue.prototype.$put = put
Vue.prototype.$delete = del
Vue.prototype.showHome = { isShow: true }

Vue.prototype.baseUrl = 'http://112.17.112.137:8888'  // 线上

// Vue.prototype.baseUrl = 'http://192.168.1.25:8888';   // 本地

import Home from './Home.vue'
console.log(routers)
Vue.mixin(mixin)
/* eslint-disable no-new */
new Vue({
  el: '#apps',
  router: routers,
  components: { Home },
  template: '<Home/>'
})
